home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
60750
/
60750.xpi
/
chrome
/
chromeFiles
/
content
/
btClient.js
< prev
next >
Wrap
Text File
|
2010-01-20
|
2KB
|
70 lines
/* This file contains all client information */
/* It HAS to be included first. */
if (typeof(BrandThunder) == "undefined") {
BrandThunder = {};
BrandThunder.clients = {};
}
BrandThunder.clients.collegehumor = {
"shortName": "collegehumor",
"clientName": "CollegeHumor",
"clientCode": "000209",
"askOriginCode": "101519",
"bingFormCode": "BT075D",
"clientVersion": "001",
"clientCountry": "US",
"rebrandID": "",
"extensionID": "collegehumorboom@collegehumor.com",
/* Used for uninstalling theme */
// "themeID": "collegehumortheme@collegehumor.com",
/* This is the short name used in chrome.manifest (toolbar) */
"packageName": "collegehumorboom",
"welcomePage": "http://pages.brandthunder.com/collegehumor/firstrun",
"homePage": "http://www.collegehumor.com/",
// "toolbarUpdateURL": "http://brandthunder.com/clientCategory/collegehumor/toolbar.json",
"defaultSearchEngine": "Bing - BT",
"firstRunSidebar": "bt-collegehumor-sidebar",
"booms": {
"collegehumor": "CollegeHumor"
}
}
/* I hate this, but I don't see any way around it. Firefox toggleSidebar doesn't
allow for custom parameters and we need them. */
/*
if (typeof(toggleSidebar) != "undefined") {
if (!toggleSidebar.btReplaced) {
var origToggleSidebar = toggleSidebar;
function btToggleSidebar(commandID, forceOpen) {
if (commandID) {
if (commandID.substring(0,3) == "bt-") {
var sidebarBox = document.getElementById("sidebar-box");
var commands = commandID.split('?');
if (commands.length > 1) {
sidebarBox.setAttribute("btSidebarParams", commands[1]);
if (!document.getElementById("sidebar-box").hidden) {
var sidebarid = window.top.document.getElementById("sidebar-box").getAttribute("sidebarcommand");
var sidebarurl = window.top.document.getElementById('sidebar').getAttribute("src");
if (sidebarid == commands[0]) {
if (!(sidebarurl.match(commands[1]))) {
origToggleSidebar();
}
}
}
}
commandID = commands[0];
}
}
origToggleSidebar(commandID, forceOpen);
}
toggleSidebar = btToggleSidebar;
toggleSidebar.btReplaced = true;
toggleSidebar.origToggleSidebar = origToggleSidebar;
}
}
*/